package com.jsu.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FoundExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FoundExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFoundIdIsNull() {
            addCriterion("found_id is null");
            return (Criteria) this;
        }

        public Criteria andFoundIdIsNotNull() {
            addCriterion("found_id is not null");
            return (Criteria) this;
        }

        public Criteria andFoundIdEqualTo(Integer value) {
            addCriterion("found_id =", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotEqualTo(Integer value) {
            addCriterion("found_id <>", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdGreaterThan(Integer value) {
            addCriterion("found_id >", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("found_id >=", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdLessThan(Integer value) {
            addCriterion("found_id <", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdLessThanOrEqualTo(Integer value) {
            addCriterion("found_id <=", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdIn(List<Integer> values) {
            addCriterion("found_id in", values, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotIn(List<Integer> values) {
            addCriterion("found_id not in", values, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdBetween(Integer value1, Integer value2) {
            addCriterion("found_id between", value1, value2, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotBetween(Integer value1, Integer value2) {
            addCriterion("found_id not between", value1, value2, "foundId");
            return (Criteria) this;
        }

        public Criteria andProviderIsNull() {
            addCriterion("provider is null");
            return (Criteria) this;
        }

        public Criteria andProviderIsNotNull() {
            addCriterion("provider is not null");
            return (Criteria) this;
        }

        public Criteria andProviderEqualTo(Integer value) {
            addCriterion("provider =", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotEqualTo(Integer value) {
            addCriterion("provider <>", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderGreaterThan(Integer value) {
            addCriterion("provider >", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderGreaterThanOrEqualTo(Integer value) {
            addCriterion("provider >=", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderLessThan(Integer value) {
            addCriterion("provider <", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderLessThanOrEqualTo(Integer value) {
            addCriterion("provider <=", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderIn(List<Integer> values) {
            addCriterion("provider in", values, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotIn(List<Integer> values) {
            addCriterion("provider not in", values, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderBetween(Integer value1, Integer value2) {
            addCriterion("provider between", value1, value2, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotBetween(Integer value1, Integer value2) {
            addCriterion("provider not between", value1, value2, "provider");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(Float value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(Float value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(Float value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(Float value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(Float value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(Float value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<Float> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<Float> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(Float value1, Float value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(Float value1, Float value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(Float value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(Float value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(Float value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(Float value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(Float value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(Float value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<Float> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<Float> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(Float value1, Float value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(Float value1, Float value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andFoundareaIsNull() {
            addCriterion("foundarea is null");
            return (Criteria) this;
        }

        public Criteria andFoundareaIsNotNull() {
            addCriterion("foundarea is not null");
            return (Criteria) this;
        }

        public Criteria andFoundareaEqualTo(String value) {
            addCriterion("foundarea =", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaNotEqualTo(String value) {
            addCriterion("foundarea <>", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaGreaterThan(String value) {
            addCriterion("foundarea >", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaGreaterThanOrEqualTo(String value) {
            addCriterion("foundarea >=", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaLessThan(String value) {
            addCriterion("foundarea <", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaLessThanOrEqualTo(String value) {
            addCriterion("foundarea <=", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaLike(String value) {
            addCriterion("foundarea like", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaNotLike(String value) {
            addCriterion("foundarea not like", value, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaIn(List<String> values) {
            addCriterion("foundarea in", values, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaNotIn(List<String> values) {
            addCriterion("foundarea not in", values, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaBetween(String value1, String value2) {
            addCriterion("foundarea between", value1, value2, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundareaNotBetween(String value1, String value2) {
            addCriterion("foundarea not between", value1, value2, "foundarea");
            return (Criteria) this;
        }

        public Criteria andFoundpositionIsNull() {
            addCriterion("foundposition is null");
            return (Criteria) this;
        }

        public Criteria andFoundpositionIsNotNull() {
            addCriterion("foundposition is not null");
            return (Criteria) this;
        }

        public Criteria andFoundpositionEqualTo(String value) {
            addCriterion("foundposition =", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionNotEqualTo(String value) {
            addCriterion("foundposition <>", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionGreaterThan(String value) {
            addCriterion("foundposition >", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionGreaterThanOrEqualTo(String value) {
            addCriterion("foundposition >=", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionLessThan(String value) {
            addCriterion("foundposition <", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionLessThanOrEqualTo(String value) {
            addCriterion("foundposition <=", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionLike(String value) {
            addCriterion("foundposition like", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionNotLike(String value) {
            addCriterion("foundposition not like", value, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionIn(List<String> values) {
            addCriterion("foundposition in", values, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionNotIn(List<String> values) {
            addCriterion("foundposition not in", values, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionBetween(String value1, String value2) {
            addCriterion("foundposition between", value1, value2, "foundposition");
            return (Criteria) this;
        }

        public Criteria andFoundpositionNotBetween(String value1, String value2) {
            addCriterion("foundposition not between", value1, value2, "foundposition");
            return (Criteria) this;
        }

        public Criteria andPhototimeIsNull() {
            addCriterion("phototime is null");
            return (Criteria) this;
        }

        public Criteria andPhototimeIsNotNull() {
            addCriterion("phototime is not null");
            return (Criteria) this;
        }

        public Criteria andPhototimeEqualTo(Date value) {
            addCriterion("phototime =", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotEqualTo(Date value) {
            addCriterion("phototime <>", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeGreaterThan(Date value) {
            addCriterion("phototime >", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeGreaterThanOrEqualTo(Date value) {
            addCriterion("phototime >=", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeLessThan(Date value) {
            addCriterion("phototime <", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeLessThanOrEqualTo(Date value) {
            addCriterion("phototime <=", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeIn(List<Date> values) {
            addCriterion("phototime in", values, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotIn(List<Date> values) {
            addCriterion("phototime not in", values, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeBetween(Date value1, Date value2) {
            addCriterion("phototime between", value1, value2, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotBetween(Date value1, Date value2) {
            addCriterion("phototime not between", value1, value2, "phototime");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}